<template>
  <div id="centerRight1">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span>
          <icon name="chart-line" class="text-icon"></icon>
        </span>
        <div class="d-flex">
          <span class="fs-xl text mx-2">任务完成排行榜</span>
        </div>
      </div>
      <div class="d-flex jc-center body-box">
        <dv-scroll-board class="dv-scr-board" :config="config" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      config: {
        header: ['剧名', '导演','主演', '上座率'],
        data: [
          ['《长津湖》', '陈凯歌、徐克、林超贤',"吴京、易烊千玺", "<span  class='colorGrass'>↑75%</span>"],
          ['《测试1》', 'dev-2', "","<span  class='colorRed'>↓33%</span>"],
          ['《测试2》', 'dev-3', "","<span  class='colorGrass'>↑100%</span>"],
          ['《测试3》', 'rea-1', "","<span  class='colorGrass'>↑94%</span>"],
          ['《测试4》', 'rea-2', "","<span  class='colorGrass'>↑95%</span>"],
          ['《测试5》', 'fix-2', "","<span  class='colorGrass'>↑63%</span>"],
          ['《测试6》', 'fix-4', "","<span  class='colorGrass'>↑84%</span>"],
          ['《测试7》', 'fix-7',"", "<span  class='colorRed'>↓46%</span>"],
          ['《测试8》', 'dev-2', "","<span  class='colorRed'>↓13%</span>"],
          ['《测试9》', 'dev-9', "","<span  class='colorGrass'>↑76%</span>"]
        ],
        rowNum: 7, //表格行数
        headerHeight: 35,
        headerBGC: '#0f1325', //表头
        oddRowBGC: '#0f1325', //奇数行
        evenRowBGC: '#171c33', //偶数行

        columnWidth: [120],
        align: ['center']
      }
    }
  },
  components: {},
  mounted() {},
  methods: {}
}
</script>

<style lang="scss" scoped>
$box-height: 410px;
$box-width: 520px;
#centerRight1 {
  padding: 16px;
  padding-top: 20px;
  height: $box-height;
  width: $box-width;
  border-radius: 5px;
  .bg-color-black {
    height: $box-height - 30px;
    border-radius: 10px;
  }
  .text {
    color: #c3cbde;
  }
  .body-box {
    border-radius: 10px;
    overflow: hidden;
    .dv-scr-board {
      width: 490px;
      height: 340px;
    }
  }
}
</style>
